*Activity diagrams:

are graphical representations of workfolw of stepwise activities and actions with support for choice, iteration and concurrency. In the UML, activity diagrams are intended to model both computational and organisational processes (i.e. workflows). Activity diagrams show the overall flow of control.


Purpose:


  • Draw the activity flow of a system.

  • Describe the sequence from one activity to another.

  • Describe the parallel, branched and concurrent flow of the system.




** The most important shape types:

  • rounded rectangles represent actions;

  • diamonds represent decisions;

  • bars represent the start (split) or end (join) of concurrent activities;

  • a black circle represents the start (initial state) of the workflow;

  • an encircled black circle represents the end (final state).

*

Arrows run from the start towards the end and represent the order in which activities happen.



before drawing an activity diagram we should identify the following elements:**

  • Activities

  • Association

  • Conditions

  • Constraints



Where to use Activity Diagrams?


  • Modeling work flow by using activities.

  • Modeling business requirements.

  • High level understanding of the system's functionalities.

  • Investigate business requirements at a later stage.